package com.antilia.infomaresme.data.services;

import com.antilia.infomaresme.data.dataobjects.User;


/**
 * @author Ernesto Reinaldo Barreiro
 *
 */
public interface IAuthenticator {

	/**
	 *  Authenticates a user for a given role.
	 *  
	 * @param username
	 * @param password
	 * @param role
	 * @return The user or null if authentication failed.
	 */
	public User authenticate(String username, String password);
	

}
